package cn.wangyu.mo.admin.mapper;

import cn.wangyu.mo.admin.entity.Admin;
import cn.wangyu.mo.base.CusBaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author wangyu
 * @since 2021-04-05
 */
@Repository
public interface AdminMapper extends CusBaseMapper<Admin> {

    /**
     * 简单分页查询
     *
     * @param page
     * @return
     */
    IPage<Admin> selectByPage(Page<Admin> page);

    /**
     * 条件分页查询
     *
     * @param page
     * @param status
     * @return
     */
    IPage<Admin> findPages(Page<Admin> page, @Param("status") boolean status);
}
